package com.lanlengran.plugintest

import android.content.Context
import android.content.ContextWrapper
import android.content.res.Resources
import android.content.res.Resources.Theme

class PluginContext(base: Context?) : PluginApplicationContext(base) {
    var application: PluginApplicationContext? = null
    override fun getApplicationContext(): Context {
        if (application == null) {
            application = PluginApplicationContext(baseContext.applicationContext)
            application!!.mResources = resources
            application!!.mClassLoader = classLoader
        }
        return application!!
    }


}